<html>
<head>
    <script src="adapter.min.js" ></script>
    <script src="webrtcstreamer.js" ></script>
    <a href="webrtc-streamer.exe">Download RTC Server</a>
    <script>
        var webRtcServer      = null;
        window.onload         = function() {
            webRtcServer      = new WebRtcStreamer("video",location.protocol+"//"+location.hostname+":8000");
            webRtcServer.connect("rtsp://admin:yjzn123456@192.168.2.64:554");
        }
        window.onbeforeunload = function() { webRtcServer.disconnect(); }
    </script>
</head>
<body>
<video id="video" />
</body>
</html>